package com.woniuxy.controller;

import com.woniuxy.controller.entity.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @BelongsProject: java-85-course-code
 * @BelongsPackage: com.woniuxy.controller
 * @Author: LiTongMiao
 * @Date: 2022/1/25 17:05
 * @Description: TODO
 */
@RestController
@RequestMapping("/json")
public class JsonManagerController {
    @RequestMapping("/addUser")
    public String addOne(@RequestBody User user, String id) {
        System.out.println("JsonManagerController.addOne方法执行成功"+id);
        return user.toString();
    }

}
